home *** CD-ROM | disk | FTP | other *** search
-
-
-
- VVVVkkkkMMMMssssggggSSSSeeeerrrrvvvviiiicccceeee((((3333xxxx)))) VVVVkkkkMMMMssssggggSSSSeeeerrrrvvvviiiicccceeee((((3333xxxx))))
-
-
-
- NNNNAAAAMMMMEEEE
- VkMsgService - ViewKit object-oriented interface to the ToolTalk message
- service
-
- IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
- VkMsgFacility
-
- HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
- #include <Vk/VkMsgService.h>
-
- PPPPUUUUBBBBLLLLIIIICCCC PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLL SSSSUUUUMMMMMMMMAAAARRRRYYYY
- CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr////DDDDeeeessssttttrrrruuuuccccttttoooorrrr
- VkMsgService(Widget w,
- const char* ptid = NULL,
- const char* sessid = NULL);
-
- void ~VkMsgService(void);
-
-
- RRRReeeeggggiiiissssttttrrrryyyy
- void registerPatterns(VkMsgClient* client, Widget w);
-
- void registerClient(VkMsgClient* client,
- VkMsgFacilityCallback callback,
- void* client_data);
-
- void unregisterClient(VkMsgClient* client);
-
- void updatePatterns(void);
-
- char* mangleTranslationName(char* name,
- VkMsgClient* client,
- Boolean useCounter);
-
-
- SSSSeeeennnnddddiiiinnnngggg RRRReeeeqqqquuuueeeessssttttssss
- VkMsgMessage sendRequest(VkMsgClient* client, char* op,
- int argc, VkMsgArg* argv);
-
- VkMsgMessage sendRequest(VkMsgClient* client, char* op);
-
- VkMsgMessage sendRequest(VkMsgClient* client,
- VkMsgMessage msg_out);
-
- VkMsgMessage sendFileRequest(VkMsgClient* client,
- char* op, char* file,
- int argc, VkMsgArg* argv);
-
- VkMsgMessage sendFileRequest(VkMsgClient* client,
- char* op, char* file);
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- VVVVkkkkMMMMssssggggSSSSeeeerrrrvvvviiiicccceeee((((3333xxxx)))) VVVVkkkkMMMMssssggggSSSSeeeerrrrvvvviiiicccceeee((((3333xxxx))))
-
-
-
- MMMMeeeessssssssaaaaggggeeee AAAAccccttttiiiioooonnnnssss
- VkMsgPattern addAction(char* op, char* action,
- VkMsgActionType type,
- VkMsgClient* client);
-
- VkMsgPattern createAction(char* op, char* action,
- VkMsgActionType type,
- VkMsgClient* client);
-
- void removeAction(VkMsgPattern pat);
-
- VkMsgServicePair* findAction(VkMsgPattern pat);
-
-
-
-
- XXXX RRRREEEESSSSOOOOUUUURRRRCCCCEEEESSSS AAAASSSSSSSSOOOOCCCCIIIIAAAATTTTEEEEDDDD WWWWIIIITTTTHHHH TTTTHHHHIIIISSSS CCCCLLLLAAAASSSSSSSS
- vkmsgTranslations String to automatically register message
- patterns
-
- CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- VkMsgService is a subclass of VkMsgFacility that adds object-level
- dispatch rather than the process-level dispatch that the ToolTalk service
- provides. It keeps track of which clients (VkMsgClient) send which
- messages, and routes the replies to the correct object. It also manages
- the different message actions corresponding to each client.
-
-
-
- FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
- VVVVkkkkMMMMssssggggSSSSeeeerrrrvvvviiiicccceeee(((())))
- VkMsgService(Widget w,
- const char* ptid = NULL,
- const char* sessid = NULL);
-
- void ~VkMsgService(void);
-
-
- The VkMsgFacility constructor opens a ToolTalk connection and sets
- up its callback for received messages and replies. The second
- argument can be used to provide a ToolTalk process type (ptype).
- The third argument specifies the ToolTalk session ID. If "default,"
- connects to the default ToolTalk session ID. If "nodefault,"
- creates a private ToolTalk session.
-
- rrrreeeeggggiiiisssstttteeeerrrrPPPPaaaatttttttteeeerrrrnnnnssss(((())))
- void registerPatterns(VkMsgClient* client, Widget w);
-
-
- Checks for a vkmsgTranslations resource value for the widget and if
- found, registers the specified message patterns. The client must
- still register message actions. This mechanism is not recommended.
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- VVVVkkkkMMMMssssggggSSSSeeeerrrrvvvviiiicccceeee((((3333xxxx)))) VVVVkkkkMMMMssssggggSSSSeeeerrrrvvvviiiicccceeee((((3333xxxx))))
-
-
-
- rrrreeeeggggiiiisssstttteeeerrrrCCCClllliiiieeeennnntttt(((())))
- void registerClient(VkMsgClient* client,
- VkMsgFacilityCallback callback,
- void* client_data);
-
-
- Adds a client. The callback is called when this client receives a
- message.
-
- uuuunnnnrrrreeeeggggiiiisssstttteeeerrrrCCCClllliiiieeeennnntttt(((())))
- void unregisterClient(VkMsgClient* client);
-
-
- Removes the client. Patterns and actions must be removed by the
- client.
-
- sssseeeennnnddddRRRReeeeqqqquuuueeeesssstttt(((())))
- VkMsgMessage sendRequest(VkMsgClient* client,
- char* op,
- int argc, VkMsgArg* argv);
-
-
- Send a request. The first argument is the operator string, the
- second argument is the number of message arguments, and the third
- argument is the array of message arguments. Returns the ToolTalk
- message object for the request.
-
- VkMsgMessage sendRequest(VkMsgClient* client, char* op);
-
-
- Send a request. The first argument is the operator string, and the
- composed message arguments list is used (see the composeBegin and
- composeAdd methods).
-
- VkMsgMessage sendRequest(VkMsgClient* client,
- VkMsgMessage msg_out);
-
-
- Send a pre-formatted request.
-
- sssseeeennnnddddFFFFiiiilllleeeeRRRReeeeqqqquuuueeeesssstttt(((())))
- VkMsgMessage sendFileRequest(VkMsgClient* client,
- char* op, char* file,
- int argc, VkMsgArg* argv);
-
-
- Like the _s_e_n_d_R_e_q_u_e_s_t() method, but sets the filename attribute to
- the second argument.
-
- VkMsgMessage sendFileRequest(VkMsgClient* client,
- char* op, char* file);
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-
-
-
- VVVVkkkkMMMMssssggggSSSSeeeerrrrvvvviiiicccceeee((((3333xxxx)))) VVVVkkkkMMMMssssggggSSSSeeeerrrrvvvviiiicccceeee((((3333xxxx))))
-
-
-
- Like the _s_e_n_d_R_e_q_u_e_s_t() method, but sets the filename attribute to
- the second argument.
-
- aaaaddddddddAAAAccccttttiiiioooonnnn(((())))
- VkMsgPattern addAction(char* op, char* action,
- VkMsgActionType type,
- VkMsgClient* client);
-
-
- Adds a message action. The first argument is the message operator
- string. The second argument is the name of the action (this will
- usually be the same as the message operator, but different if a
- translation is used). The third argument specifies the type of
- action, _V_K__M_S_G__A_C_T_I_O_N__O_B_S_E_R_V_E (notices), _V_K__M_S_G__A_C_T_I_O_N__H_A_N_D_L_E
- (requests), _V_K__M_S_G__A_C_T_I_O_N__H_A_N_D_L_E__S_P_E_C_I_F_I_C (requests matching the
- exact pattern), _V_K__M_S_G__A_C_T_I_O_N__R_E_P_L_Y (replies to requests),
- _V_K__M_S_G__A_C_T_I_O_N__F_A_I_L (failed requests), _V_K__M_S_G__A_C_T_I_O_N__S_T_A_R_T (autostart
- of handlers to service requests).
-
- Be sure to add your message actions before entering any Xt event
- loop. Otherwise, messages may be received before the action is
- registered, and they will not be processed as expected. The Xt
- event loop is entered when you call VkApp::run, or when you post a
- ViewKit dialog and a short, secondary event loop is entered.
-
- ccccrrrreeeeaaaatttteeeeAAAAccccttttiiiioooonnnn(((())))
- VkMsgPattern createAction(char* op, char* action,
- VkMsgActionType type,
- VkMsgClient* client);
-
-
- Creates a message action, but doesn't register it yet. You can then
- use ToolTalk routines like _V_k_M_s_g_P_a_t_t_e_r_n_A_r_g() to add argument types
- and values to the pattern before registering it with the
- _r_e_g_i_s_t_e_r_P_a_t_t_e_r_n() method. Use the _r_e_g_i_s_t_e_r_P_a_t_t_e_r_n() method to
- register your pattern.
-
- rrrreeeemmmmoooovvvveeeeAAAAccccttttiiiioooonnnn(((())))
- void removeAction(VkMsgPattern pat);
-
-
- Removes an action. The pattern is unregistered.
-
- ffffiiiinnnnddddAAAAccccttttiiiioooonnnn(((())))
- VkMsgServicePair* findAction(VkMsgPattern pat);
-
-
- Lookup the information associated with the message pattern. This
- information contains the message operator string, the action name,
- the message reason for that action, the message pattern, and the
- message client.
-
-
-
-
- PPPPaaaaggggeeee 4444
-
-
-
-
-
-
- VVVVkkkkMMMMssssggggSSSSeeeerrrrvvvviiiicccceeee((((3333xxxx)))) VVVVkkkkMMMMssssggggSSSSeeeerrrrvvvviiiicccceeee((((3333xxxx))))
-
-
-
- uuuuppppddddaaaatttteeeePPPPaaaatttttttteeeerrrrnnnnssss(((())))
- void updatePatterns(void);
-
-
- Call updatePatterns when you want to add new message patterns after
- connecting to the ToolTalk service. To be safe, call this method
- after you are done using the addAction and registerPattern methods.
-
- IIIINNNNHHHHEEEERRRRIIIITTTTEEEEDDDD MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNNSSSS
- IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkMMMMssssggggFFFFaaaacccciiiilllliiiittttyyyy
- connect(), joinFile(), setCallback(), getPtype(), registerPattern(),
- createPattern(), registerPattern(), unregisterPattern(),
- destroyPattern(), sendNotice(), sendNotice(), sendStringNotice(),
- sendIntNotice(), sendFileNotice(), sendFileNotice(),
- sendStringFileNotice(), sendIntFileNotice(), sendRequest(),
- sendRequest(), sendSyncRequest(), sendSyncRequest(),
- sendFileRequest(), sendFileRequest(), sendSyncFileRequest(),
- sendSyncFileRequest(), sendRequest(), composeBegin(), composeAdd(),
- composeAdd(), composeAdd(), composeAdd(), composeList(),
- composeNum(), sessionID(), sessionProperty(), setDefaultSession(),
- computeSGISession(), startPrivateSession(), getCaseSession(),
- getCaseProperty(), getDefaultSession(), breakOutOfEventLoop(),
- findReplyWaitInfo(), newReplyWaitInfo(), popReplyWaitInfo(),
- getRootProperty(), receiveReply(), connectToXt(), receiveMessage(),
- callCallback(), makePathExplicit(), messageScope(), waitForReply(),
- waitTimeOut(), receive_message(), receive_reply(), callback,
- callbackData, msg, compose, composeSize, composeCount, sgi_session,
- _sessionProperty, ptype, sessionId, numReplyWait, sizeReplyWait,
- replyWaitInfo, firstConnect, selectionAtom
-
-
- CCCCLLLLAAAASSSSSSSSEEEESSSS UUUUSSSSEEEEDDDD BBBBYYYY TTTTHHHHIIIISSSS CCCCLLLLAAAASSSSSSSS
- VkMsgClient, VkMsgFacility
-
- KKKKNNNNOOOOWWWWNNNN CCCCLLLLAAAASSSSSSSSEEEESSSS TTTTHHHHAAAATTTT UUUUSSSSEEEE TTTTHHHHIIIISSSS CCCCLLLLAAAASSSSSSSS
- VkMsgApp, VkMsgClient, VkMsgComponent, VkMsgService, VkMsgWindow
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- VkMsgFacility, VkMsgApp, VkMsgClient, VkMsgComponent, VkMsgFacility,
- VkMsgWindow
- _V_i_e_w_K_i_t _P_r_o_g_r_a_m_m_e_r'_s _G_u_i_d_e
- _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m, DEC Press, Bob Sheifler and Jim Gettys
- _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m _T_o_o_l_k_i_t, DEC Press, Paul Asente and Ralph Swick
- _T_h_e _O_S_F/_M_o_t_i_f _P_r_o_g_r_a_m_m_e_r_s _R_e_f_e_r_e_n_c_e, Prentice Hall, OSF
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 5555
-
-
-
-